﻿using JetBrains.Annotations;
using Orchard.ContentManagement.Handlers;
using Orchard.Data;
using Szmyd.Orchard.Modules.Silverlight.Models;

namespace Szmyd.Orchard.Modules.Silverlight.Handlers {
    [UsedImplicitly]
    public class SilverlightPartHandler : ContentHandler {
        public SilverlightPartHandler(IRepository<SilverlightPartRecord> repository) {
            Filters.Add(StorageFilter.For(repository));
        }
    }
}